package com.yunshang.config;

import com.yunshang.emtity.UreportFileEntity;
import com.yunshang.mapper.UreportFileMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * ureport bean数据集配置
 *
 * @author qianzc
 * @crateDate 2020/6/10 14:03
 */
@Component
public class UreportBean {

    @Resource
    private UreportFileMapper ureportFileMapper;

    /**
     * 加载报表数据对象
     *
     * @param dsName      数据源名称
     * @param datasetName 数据集名称
     * @param parameters  参数
     * @return
     */
    public List<UreportFileEntity> loadReportData(String dsName, String datasetName, Map<String, Object> parameters) {
        List<UreportFileEntity> list = ureportFileMapper.queryReportFileList();
        return list;
    }
}
